package com.soft.service;

import java.util.List;

import com.soft.entity.Worklog;

/**
 * 工作日志服务：基础CRUD、条件筛选与分页。
 */
public interface WorklogService {
    boolean saveWorklog(Worklog worklog);
    boolean updateWorklog(Worklog worklog);
    boolean deleteWorklog(Integer worklogId);
    Worklog getWorklogById(Integer worklogId);
    List<Worklog> listWorklogs();
    List<Worklog> listWorklogsBy(Integer creatorId, Integer teamId);
    long countWorklogs(Integer creatorId, Integer teamId);
    List<Worklog> listWorklogsPage(Integer creatorId, Integer teamId, int page, int size);
}
